<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/5/14
 * Time: 10:59
 */

namespace app\mini\model;

use think\Model;

class StoreUserAccountDetail extends Base
{

    public static function add($store_user_id, $store_user_account_id, $money, $type = 1): StoreUserAccountDetail|Model
    {
        $add = [
            'store_user_id'         => $store_user_id,
            'store_user_account_id' => $store_user_account_id,
            'money'                 => $money,
            'type'                  => $type,
        ];
        return self::create($add);
    }
}